package com.ruoyi.client.service.impl;

import com.ruoyi.client.mapper.GoodsMapper;
import com.ruoyi.client.pojo.form.GoodsPageForm;
import com.ruoyi.client.pojo.vo.GoodsVo;
import com.ruoyi.client.service.IGoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GoodsServiceImpl implements IGoodsService {
    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public List<GoodsVo> queryPage(GoodsPageForm form) {
        return goodsMapper.queryPage(form);
    }

    @Override
    public GoodsVo selectById(Long id) {
        return goodsMapper.selectById(id);
    }
}
